import {_ as _sfc_main$3} from "./SimpleDialog.vue_vue_type_script_setup_true_lang-B70uDCdu.js";
import {
    a as createElementBlock,
    b as createBaseVNode,
    d as defineComponent,
    e as ref,
    o as openBlock,
    p as withCtx,
    q as createVNode,
    r as resolveComponent,
    s as _sfc_main$2,
    u as unref,
    v as createTextVNode,
    y as isRef
} from "./index-Dfdf_Rjk.js";
import {_ as _sfc_main$1} from "./model-form.vue_vue_type_script_setup_true_lang-c5IznUR0.js";
import "./SelectGroup.vue_vue_type_script_setup_true_lang-DYRZ60Lx.js";
import "./executor-Csm15pJV.js";
import "./SimpleInput.vue_vue_type_script_setup_true_lang-D6HMgtcH.js";
import "./model-CGDRSQW4.js";
import "./vue-codemirror.esm-Qc3mw6Aw.js";

const _hoisted_1 = {class: "h-full w-full overflow-y-overlay p-4"};
const _hoisted_2 = {class: "mx-auto w-50% flex flex-col gap-6 rounded-lg bg-base px-10 py-8"};
const _sfc_main = /* @__PURE__ */ defineComponent({
    __name: "index",
    setup(__props) {
        const successVisible = ref(false);

        function handleSuccess() {
            successVisible.value = true;
        }

        return (_ctx, _cache) => {
            const _component_RouterLink = resolveComponent("RouterLink");
            const _component_SimpleButton = _sfc_main$2;
            const _component_SimpleDialog = _sfc_main$3;
            return openBlock(), createElementBlock("div", _hoisted_1, [
                createBaseVNode("div", _hoisted_2, [
                    _cache[2] || (_cache[2] = createBaseVNode("div", {class: "text-1.2rem font-600"}, " 创建模型 ", -1)),
                    createVNode(_sfc_main$1, {
                        type: "CREATE",
                        onSuccess: handleSuccess
                    })
                ]),
                createVNode(_component_SimpleDialog, {
                    modelValue: unref(successVisible),
                    "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(successVisible) ? successVisible.value = $event : null),
                    class: "flex-center flex-col p-4 !h-50 !w-80"
                }, {
                    default: withCtx(() => [
                        _cache[7] || (_cache[7] = createBaseVNode("div", {class: "i-ph:check-circle-duotone mb-3 text-4rem text-green"}, null, -1)),
                        _cache[8] || (_cache[8] = createBaseVNode("p", null, "模型创建成功", -1)),
                        createBaseVNode("p", null, [
                            _cache[4] || (_cache[4] = createTextVNode(" 请前往 ")),
                            createVNode(_component_RouterLink, {
                                to: "/model/list",
                                class: "a-primary"
                            }, {
                                default: withCtx(() => _cache[3] || (_cache[3] = [
                                    createTextVNode(" 模型库 ")
                                ])),
                                _: 1
                            }),
                            _cache[5] || (_cache[5] = createTextVNode(" 页面进行查看 "))
                        ]),
                        createVNode(_component_SimpleButton, {
                            type: "primary",
                            class: "mt-4",
                            onClick: _cache[0] || (_cache[0] = ($event) => successVisible.value = false)
                        }, {
                            default: withCtx(() => _cache[6] || (_cache[6] = [
                                createTextVNode(" 好的 ")
                            ])),
                            _: 1
                        })
                    ]),
                    _: 1
                }, 8, ["modelValue"])
            ]);
        };
    }
});
export {
    _sfc_main as default
};
